﻿@model IQueryable<Home.Site.Models.Account.UserProfile>
@{
    ViewBag.Title = ViewBag.Message;
}
<table class="table table-bordered table-hover table-striped">
    <tr>
        <th>Логин</th>
        <th>Имя</th>
        <th>Дата</th>
        <th>Почта</th>
        <th>Описание</th>
        <th>Рут</th>
        <th>Админ</th>
        <th>Оператор</th>
        <th></th>
    </tr>
    @if (Model != null)
    {
        foreach (var item in Model)
        {
            <tr>
                <td>@item.UserName</td>
                <td>@item.ShowName</td>
                <td>@if (item.RegistrationTime != null){@item.RegistrationTime.Value.ToShortDateString()}</td>
                <td>@item.Email</td>
                <td>@item.Other</td>
                <td>@item.IsRoot</td>
                <td>@item.IsAdmin</td>
                <td>@item.IsOperator</td>
                <td>
                    @Html.ActionLink("Ред.", "Edit", new { id = item.UserId })
                </td>
            </tr>
        }
    }
</table>
